function tbEditFFTROI_Unchecked(tb, e)
%TBEDITFFTROI_CHECKED Summary of this function goes here
%   Detailed explanation goes here


    h = uipreview_GetImage;
    h_rect= getappdata(h, 'FFTROIHandle');
    setResizable(h_rect, false)
    
    % Specify a position constraint function using makeConstrainToRectFcn 
    % to keep the rectangle inside the original Xlim and Ylim ranges.
    imrect_pos= round(getPosition(h_rect));
    setPosition(h_rect, imrect_pos);
    xlim= [0 imrect_pos(3)]+ imrect_pos(1);
    ylim= [0 imrect_pos(4)]+ imrect_pos(2);
    fcn = makeConstrainToRectFcn('imrect', xlim, ylim);
    setPositionConstraintFcn(h_rect,fcn); 
    
    
    
end

